/* **************************************************
 * User Group Manager
 *      author:     Baskin Tapkan
 *          written for Code Plex
 *              April - 2008
 *                  http://tapkan.com
 * ****************************************************
 */
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace UserGroupManager
{
    interface IUserMgr
    {
        
        DataSet GetAllLocalUsers();
        DataSet GetGroupsByUser(string userName);
        DataSet GetLockedUsers();

        // * CRUD methods
        // Create
        string CreateNewAccount(LocalUser lu);
        // Update
        string EditAccount(LocalUser oldUser, LocalUser newUser);
        // Read
        LocalUser GetAccount(string userName);
        // Delete
        bool DeleteAccount(string userName);
        // Unlocks an account
        bool UnlockAccount(string userName);
        // taken out - according to WinNT documentation, this attribute can only be set by system
        // bool LockAccount(string userName);
        //Resets a user password
        bool ResetPassword(string userName, string pswd);
       
    }
}
